<!-- include Cycle plugin -->
<script type="text/javascript" src="catalog/view/javascript/fckeditor/jquery.cycle.all.2.73.js"></script>
<!--  initialize the slideshow when the DOM is ready -->
<script type="text/javascript">
	$(document).ready(
	function() {
	    $('.slideshow').cycle({
			fx: 'fade',
			timeout:7000
		});
	});
</script>
<div class="slideshow">
	<table class="list">
	    <?php for ($i = 0; $i < count($best_view); $i = $i + 3){ ?>
			<div style="opacity: 1; display: block;padding-left:20px;padding-right:20px;padding-top:8px">
            		<!-- SP1----------------------------------------------------------------------------------->
					<p class="picture">
					<a href="<?php if(isset($best_view[$i]['href']) == true){echo $best_view[$i]['href']; } ?>">
						<img width="50" height= "50" alt="" src="<?php if(isset($best_view[$i]['thumb']) == true){echo $best_view[$i]['thumb'];}else{echo $src='image/cache/logo-new.jpg';} ?>" />
						<!-- End -->
					</a>
					</p>
					<p class="price">
						<?php if(isset($best_view[$i]['price']) == true){ echo$best_view[$i]['price'];} ?>
					</p>
                    <!------------------------------------------------------------------------------------------>
                    
                    <!--SP2------------------------------------------------------------------------------------->
					<p class="picture">
					<a href="<?php if(isset($best_view[$i+1]['href']) == true){echo $best_view[$i+1]['href']; } ?>">
						<img width="50" height= "50" alt="" src="<?php if(isset($best_view[$i+1]['thumb']) == true){echo $best_view[$i+1]['thumb'];}else{echo $src='image/cache/logo-new.jpg';} ?>" />
					</a>
					</p>
					<p class="price">
						<?php if(isset($best_view[$i+1]['price']) == true){ echo$best_view[$i+1]['price'];} ?>
					</p>
					<!-- SP3--------------------------------------------------------------------------------------->
					<p class="picture">
					<a href="<?php if(isset($best_view[$i+2]['href']) == true){echo $best_view[$i+2]['href']; } ?>">
						<img width="50" height= "50" alt="" src="<?php if(isset($best_view[$i+2]['thumb']) == true){echo $best_view[$i+2]['thumb'];}else{echo $src='image/cache/logo-new.jpg';} ?>" />
					</a>
					</p>
					<p class="price">
						<?php if(isset($best_view[$i+2]['price']) == true){ echo$best_view[$i+2]['price'];} ?>
					</p>
                    <!--------------------------------------------------------------------------------------------->
			</div>
		<?php } ?>
	</table>
</div>